package com.ww.grtsmanager.vo;

import com.fasterxml.jackson.annotation.JsonInclude;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class VideoResult {
    private Integer videoId;
    private String courseName;
    @NotNull(message = "章节名称不能为空")
    private String chapterName;
    @NotBlank(message = "教师名称不能为空")
    private String teacherName;
    private String title;
    @NotBlank(message = "视频路径有误")
    private String videoSourceId;
    private String videoOriginalName;
    private Long playCount;
    private Boolean isFree;
    private Long duration;
    private String size;//mb

    public Integer getVideoId() {
        return videoId;
    }

    public void setVideoId(Integer videoId) {
        this.videoId = videoId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getVideoSourceId() {
        return videoSourceId;
    }

    public void setVideoSourceId(String videoSourceId) {
        this.videoSourceId = videoSourceId;
    }

    public String getVideoOriginalName() {
        return videoOriginalName;
    }

    public void setVideoOriginalName(String videoOriginalName) {
        this.videoOriginalName = videoOriginalName;
    }

    public Long getPlayCount() {
        return playCount;
    }

    public void setPlayCount(Long playCount) {
        this.playCount = playCount;
    }

    public Boolean getFree() {
        return isFree;
    }

    public void setFree(Boolean free) {
        isFree = free;
    }

    public Long getDuration() {
        return duration;
    }

    public void setDuration(Long duration) {
        this.duration = duration;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "VideoResult{" +
                "videoId=" + videoId +
                ", courseName='" + courseName + '\'' +
                ", chapterName='" + chapterName + '\'' +
                ", teacherName='" + teacherName + '\'' +
                ", title='" + title + '\'' +
                ", videoSourceId='" + videoSourceId + '\'' +
                ", videoOriginalName='" + videoOriginalName + '\'' +
                ", playCount=" + playCount +
                ", isFree=" + isFree +
                ", duration=" + duration +
                ", size='" + size + '\'' +
                '}';
    }
}
